﻿using Nop.Web.Models.Home;
using System.Collections.Generic;

namespace Nop.Web.Models.XJ
{
	public class InspectionPlanListModel
	{
	}
	public class InspectionPlanModel
	{
		public InspectionPlanModel()
		{
			this.Inspections = new List<ListItemModel>();
			this.AvailablePlaces = new List<SelectItemModel>();
			this.AvailableCategories = new List<SelectItemModel>();
		}
		public int Id { get; set; }
		/// <summary>
		/// 计划编号
		/// </summary>
		public string PNo { get; set; }
		/// <summary>
		/// 计划名称
		/// 有名称，巡检内容里显示名称；没有名称，巡检内容显示具体的巡检点、设备分类
		/// </summary>
		public string Name { get; set; }
		public string TypeName { get; set; }
		/// <summary>
		/// 巡检目标
		/// <see cref="AimTypeEnum"/>
		/// </summary>
		public int AimId { get; set; }
		public string AimName { get; set; }
		public string CategoryNames { get; set; }
		public string PlaceNames { get; set; }
		/// <summary>
		/// 巡检班组
		/// </summary>
		public string TeamName { get; set; }
		/// <summary>
		/// 巡检人员
		/// </summary>
		public string PersonName { get; set; }
		/// <summary>
		/// 维修班组
		/// </summary>
		public string MaintenanceTeamName { get; set; }
		/// <summary>
		/// 维修人员
		/// </summary>
		public string MaintenancePersonName { get; set; }
		public string StartOn { get; set; }
		public string EndOn { get; set; }
		/// <summary>
		/// 最后巡检日期
		/// </summary>
		public string LastUpdateOn { get; set; }
		/// <summary>
		/// 可以操作
		/// </summary>
		public bool CanDo { get; set; }
		/// <summary>
		/// 设施设备类别
		/// </summary>
		public int CategoryId { get; set; }
		public string CategoryName { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public int PlaceId { get; set; }
		public string PlaceName { get; set; }
		/// <summary>
		/// 巡检记录
		/// </summary>
		public List<ListItemModel> Inspections { get; set; }
		/// <summary>
		/// 巡检点
		/// </summary>
		public IList<SelectItemModel> AvailablePlaces { get; set; }
		/// <summary>
		/// 设备分类
		/// </summary>
		public IList<SelectItemModel> AvailableCategories { get; set; }
	}
}